package com.mbx;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;

public class Savepage {
    @FindBy(id = "com.example.petwithlove:id/ib_pet_adopt")
    public WebElement lingyang;
    @FindBy(id = "com.example.petwithlove:id/ib_pet_foster")
    public WebElement jiyang;
    @FindBy(id = "com.example.petwithlove:id/ib_pet_check")
    public WebElement check;
    @FindBy(id = "com.example.petwithlove:id/ib_pet_contrast")
    public WebElement duibi;
    @FindBy(xpath="/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/androidx.viewpager.widget.ViewPager/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/androidx.viewpager.widget.ViewPager/android.widget.ImageView")
    public WebElement news1;
    @FindBy(id = "com.example.petwithlove:id/ib_rescue")
    public WebElement jiuzhu;
    @FindBy(id = "com.example.petwithlove:id/ib_lost")
    public WebElement lookfor;
    @FindBy(xpath="/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/androidx.viewpager.widget.ViewPager/android.widget.LinearLayout/android.widget.LinearLayout[3]/android.widget.ScrollView/android.widget.LinearLayout/android.widget.FrameLayout[1]/android.view.View")
    public WebElement cat1;
    @FindBy(xpath="/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/androidx.viewpager.widget.ViewPager/android.widget.LinearLayout/android.widget.LinearLayout[3]/android.widget.ScrollView/android.widget.LinearLayout/android.widget.FrameLayout[2]/android.view.View")
    public WebElement cat2;
    @FindBy(xpath="/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/androidx.viewpager.widget.ViewPager/android.widget.LinearLayout/android.widget.LinearLayout[3]/android.widget.ScrollView/android.widget.LinearLayout/android.widget.FrameLayout[3]/android.view.View")
    public WebElement cat3;
    @FindBy(xpath="/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/androidx.viewpager.widget.ViewPager/android.widget.LinearLayout/android.widget.LinearLayout[3]/android.widget.ScrollView/android.widget.LinearLayout/android.widget.FrameLayout[4]/android.view.View")
    public WebElement cat4;
    @FindBy(xpath="/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/androidx.viewpager.widget.ViewPager/android.widget.LinearLayout/android.widget.LinearLayout[3]/android.widget.ScrollView/android.widget.LinearLayout/android.widget.FrameLayout[5]/android.view.View\n")
    public WebElement cat5;
    @FindBy(xpath="/hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout/androidx.viewpager.widget.ViewPager/android.widget.LinearLayout/android.widget.LinearLayout[3]/androidx.viewpager.widget.ViewPager/android.widget.LinearLayout/android.view.ViewGroup/android.widget.ListView/android.widget.LinearLayout[1]/android.widget.ImageView")
    public WebElement falao;
    @FindBy(id = "keyword")
    public WebElement keyword;
    @FindBy(id = "button")
    public WebElement button;
    @FindBy(id = "com.example.petwithlove:id/bannerTitle")
    public WebElement enter;
    public Savepage(WebDriver driver){
        PageFactory.initElements(driver,this);
    }
}
